//#include "stm32f10x.h"
#include "led.h"
#include "beep.h"

int main()
{
	ledinit();
	beepinit();
	while(1)
	{
		unsigned int a,b;
		for(b=20;b>0;b--) for(a=60000;a>0;a--);
		GPIOB->ODR|=1<<5;		//PB.5 输出高 LED灭
		GPIOB->ODR&=~(1<<8);		//PB.8 输出低 BEEP关
		for(b=20;b>0;b--) for(a=60000;a>0;a--);
		GPIOB->ODR&=~(1<<5);		//PB.5 输出低 LED亮
		GPIOB->ODR|=1<<8;		//PB.8 输出高 BEEP响
	}
}
void SystemInit()
{

}
